package com.metaverse.backend.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

@Entity
@Table(
        indexes={
                @Index(columnList="sec_openid", unique = true)
        }
)
@Data
@ApiModel("玩家数据")
public class PlayerData extends BaseEntity{

    @ApiModelProperty("用户的加密openid，当前其实没有加密")
    private String sec_openid;//:"xxxx",    // 用户的加密openid，当前其实没有加密

    @ApiModelProperty("用户头像")
    private String avatar_url;//:"xxx",     // 用户头像

    @ApiModelProperty("用户昵称(不加密)")
    private String nickname;//:"xxxx",      // 用户昵称(不加密)

    @ApiModelProperty("上次排名")
    private Long preWorldRank;

    @ApiModelProperty("排行")
    private Long worldRank;

    @ApiModelProperty("总贡献值")
    private Long allscore;

    @ApiModelProperty("最新一局贡献值")
    private Long score;

    @ApiModelProperty("参加次数")
    private Long joinTimes;

    @ApiModelProperty("夺冠次数")
    private Long victoryTimes;





}
